package com.travel.travelServer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.travel.travelServer.utils.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * (Collect)表实体类
 *
 * @author makejava
 * @since 2024-03-01 16:07:59
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Collect extends BaseEntity<Collect> {
    //收藏id
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long collectId;

    //收藏id
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long userId;

    @TableField(exist = false)
    private Goods goods;

    @TableField(exist = false)
    private User user;
}

